package com.itheima.pattern.strategy;

public class Client {
    public static void main(String[] args) {
        StrategyA strategyA = new StrategyA();

        // 使用春节促销活动
        SalesMan salesMan = new SalesMan(strategyA);
        salesMan.salesManShow();

        System.out.println("===========");

        StrategyB strategyB = new StrategyB();
        // 使用中秋节促销活动
        salesMan = new SalesMan(strategyB);
        salesMan.salesManShow();
    }
}
